<template>
	<view class="index">
		<web-view v-if="url != ''" :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(o) {
			if(this.locale == 'zh') {
				this.url = 'https://all.accor.com/lien_externe.svlt?goto=rech_resa&destination=9936&dayIn=21&monthIn=3&yearIn=2024&nightNb=1&preferredCode=FIN2024&code_langue=ZH'
			} else {
				this.url = 'https://all.accor.com/lien_externe.svlt?goto=rech_resa&destination=9936&dayIn=21&monthIn=3&yearIn=2024&nightNb=1&preferredCode=FIN2024&code_langue=GB'
			}
		},
		computed: {
			locale() {
				return this.$i18n.locale
			},
		},
		methods: {}
	}
</script>

<style>
</style>